-- GENERATED SPELL FOR [Rogue Vale Screecher] --


function spell0_5308(pUnit, Event) --@Sonic Burst,Self--
pUnit:FullCastSpellOnTarget(8281,pUnit)
pUnit:RegisterEvent('Sorts_5308', 6261, 1)
end

function Sorts_5308(pUnit, Event)
local choix_sorts_5308 = math.random(0, 0)
if choix_sorts_5308 == 0 then
pUnit:RegisterEvent('spell0_5308', 1, 1)
end
end

function mob5308_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5308', math.random(1500, 3000), 1)
end

function mob5308_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5308_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5308_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5308, 1, 'mob5308_Action')
RegisterUnitEvent(5308, 2, 'mob5308_Leave')
RegisterUnitEvent(5308, 3, 'mob5308_Kill')
RegisterUnitEvent(5308, 4, 'mob5308_Die')
